<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        input,textarea{
            outline: none;
        }
        input:focus,
        textarea:focus{
            background-color: pink;
            color: red;
            border: 2px solid red;

        }
    </style>
</head>
<body>
    <input type="text"/>
    <textarea name="" id=""></textarea>
</body>
</html>